﻿
namespace IdeaNMR.Shared.Bruker
{
    /// <summary>
    /// Contains functions that account for undocumented bruker features and bugs.
    /// </summary>
    public static class FixBrukerBug
    {
        #region cpdprg file name length 15 characters
        /// <summary>
        /// TopSpin 2.1
        /// cpdprg bruker command want filename shorter than 15 symbols
        /// pulprog and spname can take longer filenames
        /// </summary>
        private const int  _cpdprgFilenameLength = 15;
        //public int CPDPRG_filename_length
        //{
        //    public get { return _cpdprgFilenameLength; }
        //}
        public static string FixCPDPRGFilenameLength(string longerValue)
        {
            return longerValue.Substring(0, _cpdprgFilenameLength);
        }

        #endregion
    }
}
